import { request } from '@/utils/request'
import type { Category } from '@/types/category'

// 获取所有分类
export const getCategories = () => {
  return request<Category[]>({
    url: 'category/list'
  })
}
